home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / maximus / lu2max35.zip / LUL2SORT.BAT < prev    next >
DOS Batch File  |  1993-05-13  |  2KB  |  61 lines

  1. @echo off
  2. echo.
  3. echo This batch file can be configured to save files.bbs headers from
  4. echo being sorted along with the file names, and add them again once
  5. echo sorting is completed. You can also, as a safety measure, specify
  6. echo areas that you don't ever want sorted.
  7. echo.
  8. echo As supplied, LUL2SORT simply sorts the file.bbs file.
  9. echo.
  10. pause
  11. rem
  12. rem  Enter dirs below that you DON'T want sorted (four lines each),
  13. rem  and uncomment the lines.
  14. rem  Important: This is CASE SENSITIVE.
  15. rem  Use the same case as the "download area" in filearea.ctl
  16. rem
  17. rem Example:
  18. rem
  19. rem if %1==C:\max\File\NewUp\ echo You can't sort %1files.bbs!
  20. rem if %1==C:\max\File\NewUp\ echo.
  21. rem if %1==C:\max\File\NewUp\ pause
  22. rem if %1==C:\max\File\NewUp\ exit
  23. rem
  24. rem
  25. echo SORTING: %1FILES.BBS
  26. echo.
  27. echo Please wait...
  28. echo.
  29. rem
  30. rem  Using the HEADER SAVER during SORT:
  31. rem
  32. rem  Headers must NOT contain "."
  33. rem  Each file name or description MUST contain "."
  34. rem
  35. rem  Example files.bbs:
  36. rem
  37. rem  ╒═══════════════════════════════════════════════════════════════════════╕
  38. rem  │  AREA 8: PHOTOGRAPHY FILES                                            │
  39. rem  ╘═══════════════════════════════════════════════════════════════════════╛
  40. rem
  41. rem Cameras.zip  [   0] Info on cameras  <--- This one would be fine
  42. rem Film         [   0] Info on film.    <--- This one would be fine
  43. rem Jots         [   0] My capture file  <--- You'd lose this listing
  44. rem
  45. rem  Uncomment these six lines to use the header saver during SORT.
  46. rem
  47. rem find /v "." <%1files.bbs>head.$$$
  48. rem find "." <%1files.bbs>nohead.$$$
  49. rem sort <nohead.$$$>files.$$$
  50. rem copy head.$$$+files.$$$ %1files.bbs>nul
  51. rem del head.$$$
  52. rem del nohead.$$$
  53. rem
  54. rem  Comment out these three lines to use the header saver during SORT.
  55. rem
  56. sort <%1files.bbs>files.$$$
  57. copy files.$$$ %1files.bbs>nul
  58. del files.$$$
  59. rem
  60. echo Done!
  61.